#!/usr/bin/python
# -*- coding:utf-8 -*-
# @FileName : test5_1.py
# Author    : myh

# 练习 5.1：条件测试　编写一系列条件测试，将每个条件测试以及你对
# 其结果的预测和实际结果都打印出来。你编写的代码应类似于下面这
# 样：

car = 'subaru'
print("Is car == 'subaru'? I predict True.")
print(car == 'subaru')
print("\nIs car == 'audi'? I predict False.")
print(car == 'audi')


num1 = 1
print("\nIs num1>=1? I predict True.")
print(num1>=1)
print("\nIs num1<1? I predict False.")
print(num1<1)

num2 = 1
arr1 = [1,2,3,4,5,6]
print("\nIs num2 in arr1? I predict True.")
print(num2 in arr1 )
print("\nIs num2 not in arr1? I predict False.")
print(num2 not in arr1)


A1 = True
A2 = False
print("\nIs A1 or A2? I predict True.")
print(A1 or A2 )
print("\nIs A1 and A2? I predict False.")
print(A1 and A2)


A3 = num1 == 1
A4 = num1 == 2
print("\nIs A3 or A4? I predict True.")
print(A3 or A4 )
print("\nIs A3 and A4? I predict False.")
print(A3 and A4)

